package com.smile.service.entity.events;

import com.fasterxml.jackson.annotation.JsonProperty;

public class DrcStatusNotifyData {

    @JsonProperty("drc_state")
    private int drcState;

    @JsonProperty("result")
    private int result;

    // Getters and Setters
    public int getDrcState() {
        return drcState;
    }

    public void setDrcState(int drcState) {
        this.drcState = drcState;
    }

    public int getResult() {
        return result;
    }

    public void setResult(int result) {
        this.result = result;
    }

    // 实用方法 - 判断DRC状态是否正常
    public boolean isDrcNormal() {
        return drcState == 0; // 假设0表示正常状态
    }

    // 实用方法 - 判断操作是否成功
    public boolean isSuccess() {
        return result == 0; // 假设0表示成功
    }

    @Override
    public String toString() {
        return "DrcStatusNotifyData{" +
                "drcState=" + drcState +
                ", result=" + result +
                '}';
    }
}
